package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/***
 * 支付信息表的dao层映射
 */
@Mapper
public interface PaymentInfoMapper extends BaseMapper<PaymentInfo> {
    /**
     * 逻辑删除
     * @param orderId
     * @return
     */
    @Update("UPDATE `payment_info` SET is_delete = 0 WHERE order_id = #{orderId};")
    int deletePaymentInfo(String orderId);
}
